﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Chaotic.Core.Extension;
using Chaotic.Core.RabbonMenu;
using Prism.Events;
using Telerik.Windows.Controls;
using Telerik.Windows.Controls.GridView;
using Telerik.Windows.Controls.RibbonView;
using Telerik.Windows.Documents.Spreadsheet.Expressions.Functions;

namespace ChaoticApplication
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow
    {
        IEventAggregator _eventAggregator;
        public MainWindow(IEventAggregator eventAggregator)
        {
            InitializeComponent();
            this.Loaded += MainWindow_Loaded;
            _eventAggregator = eventAggregator;
        }

        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            //Task.Factory.StartNew(() =>
            //{
            //    Task.Delay(3000);

            //    _eventAggregator.SendLogMessage("这个是一个公共消息");
            //});
        }
    }
}